package Kolekcje;

import java.util.*;

public class TestQueue {
	public static void main(String[] args) {
		Queue<Character> qc = new LinkedList<Character>();
		for(char c: "Brontozaur".toCharArray()){
			qc.offer(c);
		}
		System.out.println(qc);
		while(qc.peek()!=null){
			System.out.print(qc.remove()+ " ");
		}
		
		

	}

}
